package pt.inescid.components.policyengine.heimdall.core;


public class ReceptionQueueNode {

	public static final String[] REQUEST_CODES = {
		"STORE",
		"EVALUATE",
		"REMOTE",
		"NEW INFO"
	};
	
	public static final int REQUEST_STORE_EVENT = 0; //Vector????
	public static final int REQUEST_EVALUATE_EVENT = 1;//Event == Model Instance
	public static final int REQUEST_REMOTE_COMMAND = 2;//RemoteCommand
	public static final int REQUEST_PROCESS_NEW_INFO = 3;//RemoteCommand
	
	int type;
	Object request;
	
	public ReceptionQueueNode(int type, Object request) {
		super();
		this.type = type;
		this.request = request; 
	}

	public int getType() {
		return type;
	}

	public Object getRequest() {
		return request;
	}

	public void setRequest(Object request) {
		this.request = request;
	}

	public void setType(int type) {
		this.type = type;
	}
	
	public String toString() {
		return (REQUEST_CODES[type]);
	}
	
}; // ReceptionQueueNode
